﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Duck: Animal, ISwim
    {
        public override void eat()
        {
            Console.WriteLine("duck在eat");
        }

        public void swim()
        {
            Console.WriteLine("duck在swim");
        }
    }
}
